package com.ruoyi.monitormanage.mapper;

import java.util.List;
import com.ruoyi.monitormanage.domain.TTestpoint;
import com.ruoyi.monitormanage.domain.TTestpointanddept;
import org.apache.ibatis.annotations.Param;

/**
 * monitormanagebuildMapper接口
 *
 * @author xiaodabao
 * @date 2025-06-06
 */
public interface TTestpointMapper
{
    /**
     * 查询monitormanagebuild
     *
     * @param id monitormanagebuild主键
     * @return monitormanagebuild
     */
    public TTestpointanddept selectTTestpointById(Long id);

    /**
     * 查询monitormanagebuild列表
     *
     * @param tTestpoint monitormanagebuild
     * @return monitormanagebuild集合
     */
    public List<TTestpointanddept> selectTTestpointList(TTestpoint tTestpoint);


    /**
     * 新增monitormanagebuild
     *
     * @param tTestpoint monitormanagebuild
     * @return 结果
     */
    public int insertTTestpoint(TTestpoint tTestpoint);
    public int batchInsertTestpoint(List<TTestpointanddept> TestpointanddeptList);

    /**
     * 修改monitormanagebuild
     *
     * @param tTestpoint monitormanagebuild
     * @return 结果
     */
    public int updateTTestpoint(TTestpoint tTestpoint);

    /**
     * 删除monitormanagebuild
     *
     * @param id monitormanagebuild主键
     * @return 结果
     */
    public int deleteTTestpointById(Long id);

    /**
     * 批量删除monitormanagebuild
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTTestpointByIds(Long[] ids);

    public List<String> selectyearlist(TTestpoint tTestpoint);

    public TTestpointanddept checkTestpointUnique(@Param("year")String year, @Param("orgId")Long orgId);

    public TTestpoint getTestpoint(@Param("year")String year, @Param("orgId")Long orgId);
}
